<?php
	//start the session
	session_start();
	
	//checks if user has logged in and if not displays an error message
	if(!isset($_SESSION['username']))
	{
		$_SESSION['message'] = "<span style='color: red; font-weight: bold;'>You are not logged in to view this page.</span>";
		header('Location: login');
	}
?>

<html>
	<head>
		<title>Recaptures</title>
	</head>
	<body>
		<p align="left">User: <?php echo $_SESSION['username'];?></p>
		<p>
			<br />
			<img src="image.jpg" />Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
				<!--Form Start--><form method="POST" name="addBagForm" action="shopping-cart">
				<input type="hidden" id="itemNumber" name="itemNumber" value="R One">
				<!--Submit--><input type="submit" class="submit" value="Add to cart" />
				<!--Form End--></form>

			<br /><br />
			<img src="image.jpg" />Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
				<!--Form Start--><form method="POST" name="addBagForm" action="shopping-cart">
					<input type="hidden" id="itemNumber" name="itemNumber" value="R Two">
					<!--Submit--><input type="submit" class="submit" value="Add to cart" />
				<!--Form End--></form>
		</p>
	</body>
</html>